<div class="ibox">
	<div class="ibox-title">
		<h5>课程表</h5>
		<div class="nowrap pull-right" style="margin-top:10px">
	    	<button data-modal='schedule/form' data-title="添加课程" class='layui-btn layui-btn-small'><i class='fa fa-plus'></i> 添加课程</button>
		</div>
	</div>
<div class="ibox-content fadeInUp animated">
<form onsubmit="return false;" data-auto="" method="POST">
    <input type="hidden" value="resort" name="action"/>
    <table class="table table-hover">
        <thead>
            <tr>
            	<th class='text-center'>课程日期</th>
                <th class='text-center'>图片</th>
                <th class='text-center'>标题</th>
                <th class='text-center'>学堂类型</th>
                <th class='text-center'>操作</th>
            </tr>
        </thead>
        <tbody>
            <#list slist as schedule>
            <tr>
            	<#if schedule.week_day==1>
            		<th class='text-center'>星期一</th>
            	<#elseif schedule.week_day==2>
            		<th class='text-center'>星期二</th>
            	<#elseif schedule.week_day==3>
            		<th class='text-center'>星期三</th>
            	<#elseif schedule.week_day==4>
            		<th class='text-center'>星期四</th>
            	<#elseif schedule.week_day==5>
            		<th class='text-center'>星期五</th>
            	<#elseif schedule.week_day==6>
            		<th class='text-center'>星期六</th>
            	<#else>
            		<th class='text-center'>星期日</th>
            	</#if>
            	
                <td class='text-center'>
					<img data-tips-image="" style="height:auto;max-height:32px;min-width:32px" src="${schedule.img!''}"/>
				</td>
                <td class='text-center'>${schedule.title!""}</td>
                <td class='text-center'>${schedule.school!""}</td>
                <td class='text-center nowrap'>
                	<a data-modal='schedule/form?schedule_id=${schedule.schedule_id!""}' href="javascript:void(0)">编辑</a>
                	<span class="text-explode">|</span>
					<a data-update='${schedule.schedule_id?c}' data-field='is_del' data-action='schedule/delete' href="javascript:void(0)">删除</a>
				</td>
            </tr>
           	</#list>
        </tbody>
    </table>
</form>
</div>
</div>